package cn.santi.emuns;

public enum ResultCodeEnum {

    //1.定义属性
    // 0x000001 错误信息XXXXXXX
    // 0x000002 错误信息2

    SUCCESS( 200 , "成功"),
    REG_ERROR( 302 , "注册失败"),
    PLEASE_SEE_USER_PWD(303 , "请检查用户名或密码！"),
    SYS_ERROR(304 , "系统异常"),
    ADD_BOOK_ERROR(205 , "添加书籍失败")
    ;

    int code;   //编号

    String lable;       //错误描述


    ResultCodeEnum(int code , String lable ){
        this.code = code;
        this.lable = lable;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getLable() {
        return lable;
    }

    public void setLable(String lable) {
        this.lable = lable;
    }
}
